package mc.contents.service;

import mc.contents.pojo.persistence.ShopKeyword;
import mc.contents.pojo.view.Rank;
import mc.contents.pojo.view.ReshelfItem;
import mc.contents.web.common.CrawResult;
import mc.contents.web.request.RankCrawRequest;
import mc.contents.web.request.ReshelfCrawRequest;
import java.util.List;
import java.util.Set;
/**
 * Created with IntelliJ IDEA. <br/>
 * Author: LuoHui    <br/>
 * Date: 2014-11-25  <br/>
 */
public interface ICrawService {
    public Set<Rank> getRanks( RankCrawRequest crawRequest, List<CrawResult> crawResults );

    public void saveAsHistory( RankCrawRequest crawRequest, Set<Rank> ranks, String nick,boolean isQian );

    Set<ReshelfItem> getReshelfItems( ReshelfCrawRequest crawRequest, List<CrawResult> results );

    public ShopKeyword getByKeyword(String keyword);

    boolean queryBusy(String sellerId);

    void writeQueryTime(String sellerId);
}
